package com.wejoy.video.middle.station.data.enums.dict;

/**
 * @Author 张文杰
 * @PackageName video-middle-station
 * @Package com.wejoy.video.middle.station.data.enums.dict
 * @Date 2022/11/21 11:41 AM
 * @Description 工单审核状态
 * @Version 1.0
 */
public enum EnumWorkOrderReviewStatus {
    EXAMINATION_PASSED(0,"通过"),
    REVIEW_REJECT(1,"驳回")
    ;

    private Integer code;
    private String text;

    EnumWorkOrderReviewStatus(Integer code, String text) {
        this.code = code;
        this.text = text;
    }
    // 普通方法
    public static String getText(Integer code) {
        for (EnumWorkOrderReviewStatus c : EnumWorkOrderReviewStatus.values()) {
            if (c.getCode().equals(code)) {
                return c.text;
            }
        }
        return null;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
